﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="SearchFlightSchedule.aspx.cs" Inherits="Xyz.Web.Admin.Flight.FlightSchedule" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Flight Schedule
    </h2>
    <fieldset>
        <legend>Search Option</legend>
        <table style="width: 100%">
            <tr>
                <td style="width: 20%">
                    <asp:Label ID="lblFlightNumber" runat="server" Text="Flight Number :"></asp:Label>
                </td>
                <td style="width: 80%">
                    <asp:TextBox ID="txtFlightNumber" runat="server"></asp:TextBox>
                </td>
            </tr>
        </table>
        <br />
    </fieldset>
    <div>
        <asp:Button ID="btnSearch" runat="server" Text="  Search  " OnClick="btnSearch_Click" CssClass="yellow_button" />
    </div>
    <br />
    <fieldset style="border: none; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;">
    <asp:GridView ID="GridViewFlight" runat="server" AutoGenerateColumns="False" CellPadding="4"
        ForeColor="#333333" GridLines="None" AllowPaging="True" AllowSorting="True" OnPageIndexChanging="GridViewFlight_PageIndexChanging"
        HorizontalAlign="Left" OnRowDataBound="GridViewFlight_RowDataBound" Width="100%">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:HyperLinkField DataTextField="FlightCode" HeaderText="Flight Number" DataNavigateUrlFields="FlightId"
                DataNavigateUrlFormatString="~/Flight/EditFlightSchedule.aspx?FlightId={0}">
                <ControlStyle Font-Bold="True" />
            </asp:HyperLinkField>
            <asp:BoundField HeaderText="Departure Airport" DataField="DepartureAirport" />
            <asp:BoundField HeaderText="Arrival Airport" DataField="ArrivalAirport" />
            <asp:BoundField HeaderText="Departure DateTime" DataField="DepartureDateTime" DataFormatString="{0:dd-MMM-yyyy HH:mm}"
                HtmlEncode="False" ReadOnly="True" />
            <asp:BoundField HeaderText="Arrival DateTime" DataField="ArrivalDateTime" DataFormatString="{0:dd-MMM-yyyy HH:mm}"
                HtmlEncode="False" />
            <asp:BoundField HeaderText="Status" DataField="FlightStatus" ReadOnly="true" />
            <asp:BoundField DataField="TaxSurcharge" DataFormatString="{0:###0.00}" HeaderText="Tax Surcharge"
                ItemStyle-HorizontalAlign="Right">
                <ItemStyle HorizontalAlign="Right"></ItemStyle>
            </asp:BoundField>
        </Columns>
        <EditRowStyle BackColor="#BFA130" />
        <EmptyDataTemplate>
            No flight found
        </EmptyDataTemplate>
        <FooterStyle BackColor="#BFA130" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#BFA130" Font-Bold="True" ForeColor="White" HorizontalAlign="Left"
            VerticalAlign="Top" />
        <PagerStyle BackColor="#BFA130" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFFFCC" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    </fieldset>
    <br />
</asp:Content>
